<template>
  <div class="s-container">
    <div style="margin:0px auto;width:1300px;height:100%">
      <div class="c-left" style="width:450px">
        <div class="c-gather">
          <img :src="imageUrl" style="width:100%;height:100%;border-radius: 50% 50%;"/>
        </div>
      </div>
      <div class="c-left" style="width:850px">
        <span>暂无歌词 ~</span>
      </div>
    </div>
  </div>
</template>

<script>
import { addItem } from '@/api/event'
import { getMusicService } from '@/api/music'
export default {
  // name: "share", 
  data() {
    return {
      imageUrl:'',
      fileid:'',
    };
  },
  created() {
    this.fileid = this.$route.query.fileid
    this.imageUrl = "/mpi/com/image?fileid=" + this.fileid
    this.getData()
  },
  methods: {
    async getData() {
      const resp = await getMusicService({fileid:this.fileid})
      if (!resp || 0 !== resp.result) {
        error(resp.message)
        return
      }

      addItem(this, resp.data)
    }
  }
}
</script>

<style lang="scss" scoped>
  .s-container {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    // background-color:#e5e8eb;
    width: 100%;
    height: calc(100vh - 280px);
  }

  .c-left {
    float:left;
    height:100%;
    display:flex;
    justify-content: center;
    align-items: center;

    .c-gather {
      width:200px;
      height:200px;
      margin-right:50px;
      margin-top:15px;
      border-radius: 50% 50%;
      box-shadow: 10px 5px 9px #4d4f50;
      // box-sizing:border-box;
      border-radius: 50% 50%;
      border:30px solid transparent;
      background-clip:padding-box,border-box;
      background-origin:padding-box,border-box;
      background-image:linear-gradient(45deg,#ebe4e4,#312d2d,#e2d6d6), linear-gradient(45deg,#978e8e,#060606,#7e7373);
      // linear-gradient(45deg,#686464,#060606,#535151);
    }
  }



</style>